<?php

class admin_template_system_menu_group_listing extends admin_theme
{

	protected function center()
	{
		$groups = $this->get('groups');

		$ui_listing = bone::get_admin_ui('listing');
		$ui_listing->can('create');
		$ui_listing->can('edit');
		$ui_listing->can('delete');
		
		$ui_listing->set_data($groups);
		
		$ui_listing->set_fields(
            array(
    			'name'=>'name',
    			'label'=>'菜单名',
    			'align'=>'left'
    		),
    		array(
    			'name'=>'class_name',
    			'label'=>'调用类名',
    			'align'=>'center',
    		    'width'=>'180'
    		)
		);
		$ui_listing->display();

		?>
		<div class="comment">
			<ul>
				<li>* 菜单组类名为开发人员开发时调用。</li>
				<li>* north 和 south 为系统默认顶部和底部菜单类名， 禁止改动和删除。</li>
			</ul>
		</div>
		<?php
		
	}	

}
?>